package com.uibase.card
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.utils.getDefinitionByName;

	public class CardPool
	{		
		static public function getCardByVal(val:int):MovieClip
		{
			var cls:Class = getDefinitionByName("com.uibase.Card"+val.toString()) as Class;
			if(!cls)
			{
				return null;
			}
			
			return new cls;
		}
	}
}